package com.wr.edu.demo.cotroller;

import com.wr.edu.demo.service.DemoService;
import com.wr.edu.mvcframework.annotations.MyAutowired;
import com.wr.edu.mvcframework.annotations.MyController;
import com.wr.edu.mvcframework.annotations.MyRequestMapping;
import com.wr.edu.mvcframework.annotations.Security;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

/**
 * @author 王瑞
 * @description:
 * @date 2020/2/21  14:16
 */
@MyController
@MyRequestMapping("/demo")
public class DemoController {

    @MyAutowired
    private DemoService demoService;

    @MyRequestMapping("/handle01")
    @Security({"zhangsan","lisi"})
    public String handle01(HttpServletRequest request, HttpServletResponse response,String name){
        System.out.println("coming!!!!!");

        return "";
    }


    @MyRequestMapping("/handle02")
    @Security({"lisi"})
    public String handle02(HttpServletRequest request, HttpServletResponse response,String name){
        System.out.println("coming!!!!!");

        return "";
    }

    @MyRequestMapping("/handle03")
    @Security({"zhangsan"})
    public String handle03(HttpServletRequest request, HttpServletResponse response,String name){
        System.out.println("coming!!!!!");

        return "";
    }

    @MyRequestMapping("/handle04")
    public String handle04(HttpServletRequest request, HttpServletResponse response,String name){
        System.out.println("coming!!!!!");

        return "";
    }




}
